//
//  DataBase.h
//  JianChaRiBao
//
//  Created by Changxy on 13-6-6.
//  Copyright (c) 2013年 wzyk. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "FMDatabase.h"
@interface DataBase : NSObject
{
    FMDatabase * fmdb;
    
}
@property (nonatomic, copy) NSString * tableName;
+ (DataBase *)shareDB;

- (id)init;
- (BOOL)isExists:(NSDictionary *)dict;


- (void)insertInfo:(NSDictionary *)dict;
- (NSArray *)selectInfo;
- (void)deleteAllInfo;


-(void)insertMagaInfo:(NSDictionary *)dict;
-(NSArray *)selectMagaInfo;

- (void)addListen:(NSString *)listenID cover:(NSString *)cover;
- (NSString *)getCoverByListen:(NSString *)listenID;

@end
